package fileIO;

import java.io.File;
import java.util.Arrays;

public class Demo2_listFiles {
    public static void main(String[] args) {
        File file = new File("./");
        String[] files = file.list();
        if(file.isDirectory()){
            System.out.println(Arrays.toString(files));
        }
    }
}
